declare namespace DORM_TRIPPING_RECORD {
  /**
   * 宿舍跳闸记录模型
   */
  interface TrippingRecordModel {
    id: number;
    dormitoryNum: string;
    studentName: string;
    className: string;
    counselor: string;
    isHandled: number; // 0-未处理，1-已处理
    trippingPower: number; // 跳闸功率（单位：千瓦）
    trippingTime: string;
    createTime?: string;
    updateTime?: string;
  }

  /**
   * 跳闸记录列表请求参数
   */
  interface TrippingRecordListParams {
    current?: number;
    pageSize?: number;
    dormitoryNum?: string;
    studentName?: string;
    className?: string;
    counselor?: string;
    isHandled?: number;
    minPower?: number;
    maxPower?: number;
    startDate?: string;
    endDate?: string;
  }

  /**
   * 跳闸记录列表响应数据
   */
  interface TrippingRecordListResponse {
    code: number;
    message: string;
    data: {
      current: number;
      pageSize: number;
      total: number;
      pages: number;
      records: TrippingRecordModel[];
    };
  }

  /**
   * 跳闸记录详情响应数据
   */
  interface TrippingRecordDetailResponse {
    code: number;
    message: string;
    data: TrippingRecordModel;
  }
}